package test1;
import java.util.*;

import parser.*;
public class Main {

	public static void main(String[] args) {
		// TODO 自动生成的方法存根
		while(true) {
		Scanner in=new Scanner(System.in);
		String command=in.nextLine();
		ArrayList<Word> word=parserWord.analysis(command);
		/*
		for(int a=0;a<word.size();a++) {
			System.out.println(word.get(a).text+","+Tools.test_getWordType(word.get(a).type));
		}
		*/
		//System.out.println(word);
		System.out.println(value.run(word));
		}
	}
//2*4+3+4*5;
}
